import httpInstance from "@/utils/http.js";

// knowledge相关api

// 增
export const addPrivateAPI = (data) => {
    return httpInstance({
        url: "/api/add",
        method: "POST",
        data: data
    })
}

// 删
export const delPrivateAPI = (data) => {
    return httpInstance({
        url: "/api/del",
        method: "POST",
        data: data
    })
}

// 改
export const modifyPrivateAPI = (data) => {
    return httpInstance({
        url: "/api/modify",
        method: "POST",
        data: data
    })
}

// 查单个
export const detailPrivateAPI = (data) => {
    return httpInstance({
        url: "/api/detail",
        method: "POST",
        data: data
    })
}

// 查全部
export const listPrivateAPI = () => {
    return httpInstance({
        url: "/api/list",
        method: "POST",
    })
}

